Environmnent: Ubuntu 18.04.1 , 5.4.0-80-generic
when you want to installl some packages
it shows some error in your screen
E: Sub-process /usr/bin/dpkg returned an error code (1)
How to solve this problem ?
cd /var/lib/dpkg/
sudo mv info/ info_bak # rename info dir
sudo mkdir info #
sudo apt-get update # update
sudo apt-get -f install # fix
sudo mv info/* info_bak/
sudo rm -rf info
sudo mv info_bak info